/* 
 *   Date       Developer         Description
 *   2017-09-07 周成功      新建
 * 
 *
 *   Classname:  com.titan.demo.commons.RowMapper.PlayLogRowMapper
 * 
 *   The source code contained in this listing is proprietary to
 *   Baby Footmarks studio.
 * 
 *   Unauthorized copying, adaptation, distribution, use, or display
 *   is strictly prohibited.
 *   This software is Copyright 2017 Baby Footmarks studio.
 */
package com.titan.demo.commons.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.titan.core.base.BaseRowMapper;
import com.titan.demo.commons.domain.PlayLogDomain;


/**
 * 根据数据库表play_log创建的RowMapper类
 *
 * @author 周成功
 *
 */
public class PlayLogRowMapper extends BaseRowMapper<PlayLogDomain> {
    public PlayLogDomain mapRow(ResultSet rs, int rowNum) throws SQLException {
        PlayLogDomain ro = new PlayLogDomain();
        ro.setId(getString(rs, "id", null));
        ro.setGroup1(getString(rs, "group1", null));
        ro.setGroup2(getString(rs, "group2", null));
        ro.setGroup3(getString(rs, "group3", null));
        ro.setGroup4(getString(rs, "group4", null));
        ro.setGroup5(getString(rs, "group5", null));
        ro.setServer_id(getString(rs, "server_id", null));
        ro.setServer_ip(getString(rs, "server_ip", null));
        ro.setServer_port(getString(rs, "server_port", null));
        ro.setUser_id(getString(rs, "user_id", null));
        ro.setUser_ip(getString(rs, "user_ip", null));
        ro.setUser_header(getString(rs, "user_header", null));
        ro.setUser_uri(getString(rs, "user_uri", null));
        ro.setMessage1(getString(rs, "message1", null));
        ro.setMessage2(getString(rs, "message2", null));
        ro.setMessage3(getString(rs, "message3", null));
        ro.setMessage4(getString(rs, "message4", null));
        ro.setMessage5(getString(rs, "message5", null));
        ro.setMessage6(getString(rs, "message6", null));
        ro.setMessage7(getString(rs, "message7", null));
        ro.setMessage8(getString(rs, "message8", null));
        ro.setMessage9(getString(rs, "message9", null));
        ro.setAttribute1(getString(rs, "attribute1", null));
        ro.setAttribute2(getString(rs, "attribute2", null));
        ro.setAttribute3(getString(rs, "attribute3", null));
        ro.setAttribute4(getString(rs, "attribute4", null));
        ro.setAttribute5(getString(rs, "attribute5", null));
        ro.setCreate_name(getString(rs, "create_name", null));
        ro.setCreate_dt(getTimestamp(rs, "create_dt", null));
        ro.setUpdate_name(getString(rs, "update_name", null));
        ro.setUpdate_dt(getTimestamp(rs, "update_dt", null));
        ro.setDelete_flag(getString(rs, "delete_flag", null));
        ro.setDelete_name(getString(rs, "delete_name", null));
        ro.setDelete_dt(getTimestamp(rs, "delete_dt", null));
        return ro;
    }
}

